//
//  RedBagRouter.swift
//  LeGou
//
//  Created by lxm on 2022/10/8.
//

import Foundation
class RedBagRouter {
    // 路由
      static func initialize(navigator: NavigatorProtocol) {
          // 红包
          navigator.register("xm://main/RedBag/index") { url, values, context in
              return RedBagVC()
          }
    
          navigator.register("xm://main/RedBag/Rank/index") { url, values, context in
              let vc = RankVC()
              if let context = context, let type = JSON(context)["type"].int {
                  vc.viewModel.type = type
              }
              return vc
          }
      }
}

